<?php
namespace app\common\controller;
use think\Controller;
use think\Request;
use think\Config;
class Base extends Controller
{
    public function _initialize() {
        //魔方路径
        $request = Request::instance();
        $module_url = '/'.$request->module().'/'.$request->controller();
        Config::set([
            'view_replace_str'=>[
                '__MODULE__'=>$module_url
            ],
        ]); 
    }
}
